package com.study.annotation;


import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Conditional;

//@Configuration
//@ComponentScan(value = "com.study.annotation"
        //excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION,classes = Controller.class)},
//        includeFilters = {@ComponentScan.Filter(type = FilterType.CUSTOM,classes = {MyTypeFilter.class})},
//        useDefaultFilters = false
//)

@Configurable
public class MainConfigFactory {
    @Bean("beanFactory")
    public MyBeanFactory beanFactory(){
        System.out.println("实例化person");
        return new MyBeanFactory();
    }



}
